import request from '@/utils/request'

// 查询支付列表
export function listPaymentMethods(query) {
  return request({
    url: '/ms/PaymentMethods/list',
    method: 'get',
    params: query
  })
}

// 查询支付详细
export function getPaymentMethods(paymentmethodID) {
  return request({
    url: '/ms/PaymentMethods/' + paymentmethodID,
    method: 'get'
  })
}

// 新增支付
export function addPaymentMethods(data) {
  return request({
    url: '/ms/PaymentMethods',
    method: 'post',
    data: data
  })
}

// 修改支付
export function updatePaymentMethods(data) {
  return request({
    url: '/ms/PaymentMethods',
    method: 'put',
    data: data
  })
}

// 删除支付
export function delPaymentMethods(paymentmethodID) {
  return request({
    url: '/ms/PaymentMethods/' + paymentmethodID,
    method: 'delete'
  })
}
